import React from 'react';
import { connect } from 'dva';
import { Layout, Button } from 'antd';
import Asider from '../../components/Asider/Asider';

import s from './IndexPage.css';
const { Header, Sider, Content } = Layout;
function IndexPage(props) {
  return (
    <Layout className={s.layout}>
      <Sider>
        <Asider></Asider>
      </Sider>
      <Layout>
        <Header className={s.header}></Header>
        <Content>
          <div className={s.body}>
           {props.children}
             {/* <Router>
               <Route path="/login" exact component={Login} />
             </Router> */}
          </div>
        </Content>
      </Layout>
    </Layout>
  );
}

IndexPage.propTypes = {
};

export default connect()(IndexPage);
